package cn.kgc.javaweb.service;

import cn.kgc.javaweb.entity.User;
import cn.kgc.javaweb.util.PageDate;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/10/31
 */
public interface UserService {

    Boolean register(User user);

    Boolean checkUserName(String username);

    User login(String username);

    List<User> findAll();

    User findByUserName(String username);

    Boolean updateUserById(User user);

    Boolean deleteById(Long id);

    Boolean resetPwd(Long id);

    PageDate selectPage(Integer currentPage, Integer limit);

    Boolean updateImg(String lastName, Long id);
}
